﻿@model string

<form action='@Url.Action("Index")' method="post" class="editForm">
<div style="height: 40px; line-height: 40px; padding: 0 10px;">
    <div class="pull-left" style="height: 40px; line-height: 40px;">
        <h2 id="bigTitle">
            @ViewBag.Title
        </h2>
    </div>
</div>
<hr />
@Html.Partial("MessageTip")

<div class="row" style="margin-top: 20px;">
    <textarea id="htmlContent" name="htmlContent" class="htmledit" cols="100" rows="8"
        style="visibility: hidden; height: 600px;">
            @Model
            </textarea>
</div>
@Html.ValidationSummary()
<div class="row" style="margin-top: 20px;">
    <div class="span2 offset5">
        <input type="submit" id="Button1" class="btn  btn-primary  btn-large" value="保存" />
    </div>
</div>
</form>
@section scripts{
    <script type="text/javascript">
        KindEditor.ready(function (K) {
            var editor1 = K.create('#htmlContent', {
                uploadJson: '@Url.Content("~/Content/kindeditor-4.1/asp.net/upload_json.ashx")',
                fileManagerJson: '@Url.Content("~/Content/kindeditor-4.1/asp.net/file_manager_json.ashx")',
                allowFileManager: true,
                items: [
						'fontname', 'fontsize', 'formatblock', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
						'removeformat', 'lineheight', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
						'insertunorderedlist', '|', 'emoticons', 'image', 'link']
            });
        });
        
    </script>
}
